package com.zmn.plat.business.interfaces.supplier;

import java.util.List;

import com.zmn.plat.model.entity.supplier.ScmSupplier;

/**
 * 类描述：ScmSupplierBService
 *
 * @author DaiZhichao
 * @since 2018/10/26 12:41
 */
public interface ScmSupplierBService {

    /**
     * 描述:更新供应商以及关联的公司
     *
     * @param supplier
     *            ScmSupplier
     * @param companyIdList
     *            List<Integer>
     * @author DaiZhichao
     * @since 2019/2/1 16:34
     */
    void updateByKey(ScmSupplier supplier, List<Integer> companyIdList);

    /**
     * 描述:新增供应商以及关联的公司
     *
     * @param supplier
     *            ScmSupplier
     * @param companyIdList
     *            List<Integer>
     * @author DaiZhichao
     * @since 2019/2/1 16:34
     */
    void insert(ScmSupplier supplier, List<Integer> companyIdList);
}
